<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center promoter_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub promoter_fd0_0'>
					<view class='flex flex-wrap align-center promoter_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  promoter_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<text class='promoter_fd0_0_c1'>我的团队</text>
					<view class='flex flex-wrap align-center promoter_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout promoter_flex_1">
				<view class='flex flex-wrap align-center justify-center promoter_fd1_0'>
					<view class='flex flex-direction flex-wrap align-center'>
						<text class='promoter_fd1_0_c0_c0'>{{dataDetails.team_number}}</text>
						<text class='promoter_fd1_0_c0_c1'>团队人数</text>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout promoter_flex_2">
				<view class='flex align-center justify-between promoter_fd2_0'>
					<text class='promoter_fd2_0_c0'>姓名</text>
					<text class='promoter_fd2_0_c0'>邀请方式</text>
					<text class='promoter_fd2_0_c0'>加入时间</text>
				</view>
				<template v-for='(item,key0) in dataList'>
					<view class='flex align-center justify-between promoter_fd2_1' :key='key0'>
						<text class='promoter_fd2_1_c0'>{{item.nickname}}</text>
						<text class='promoter_fd2_1_c1'>{{item.recommend_type}}</text>
						<text class='promoter_fd2_1_c2'>{{item.create_time}}</text>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"dataDetails": {
					"team_number": ""
				},
				"dataList": []
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.DataDetailsFunc()
			this.dataListFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.DataDetailsFunc()
			this.dataListFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取推广数量
			async DataDetailsFunc() {
				//请求方法
				//数据验证

				let datadataDetails = await this.$api.get(global.apiUrls.post63b7e7ea721b9, {

				});

				if (datadataDetails.data.code != 1) {
					this.$message.info(datadataDetails.data.msg);
					return
				}
				let infodataDetails = datadataDetails.data;
				this.dataDetails = infodataDetails.data

			},
			//获取推广人员列表
			dataListFunc() {
				this.minixPagingListsApi = global.apiUrls.post63b7e2cae666d;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {}
				this.listData = [];
				this.dataList = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: var(--benbenbgColor4);
		background-size: 100% auto;
	}

	.promoter_flex_0 {
		background: var(--benbenbgColor2);
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.promoter_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #fff;
	}

	.promoter_fd0_0_c0_c0 {
		font-size: 32rpx;
		color: #fff;
	}

	.promoter_fd0_0_c0 {
		width: 120rpx;
		height: 88rpx;
	}

	.promoter_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.promoter_flex_1 {
		background: var(--benbenbgColor2);
		padding: 32rpx 32rpx 32rpx 32rpx;
		background-size: 100% auto;
	}

	.promoter_fd1_0_c0_c1 {
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		margin: 12rpx 0rpx 0rpx 0rpx;
	}

	.promoter_fd1_0_c0_c0 {
		font-size: 48rpx;
		font-weight: 600;
		color: #333333;
	}

	.promoter_fd1_0 {
		background: #fff;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 48rpx 127rpx 48rpx 128rpx;
	}

	.promoter_flex_2 {
		// background: var(--benbenbgColor1);
		background-size: 100% auto;
		padding: 32rpx;
	}

	.promoter_fd2_1_c2 {
		font-size: 24rpx;
		font-weight: 500;
		color: #999999;
	}

	.promoter_fd2_1_c1 {
		font-size: 24rpx;
		font-weight: 500;
		width: 30%;
		text-align: center;
	}

	.promoter_fd2_1_c0 {
		font-size: 28rpx;
		font-weight: 500;
		color: #333333;
		width: 30%;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.promoter_fd2_1 {
		margin: 0rpx 0rpx 24rpx 0rpx;

	}

	.promoter_fd2_0_c0 {
		font-size: 28rpx;
		font-weight: 500;
		color: #666666;
		width: 30%;
		text-align: center;
	}

	.promoter_fd2_0 {
		margin: 0rpx 0rpx 24rpx 0rpx;
	}
</style>